export class BaseScene extends Phaser.Scene {
  constructor(prop) {
    super(prop)
  }
  get gameWidth() {
    return this.game.config.width
  }
  get gameHeight() {
    return this.game.config.height
  }
  get gameCenterX() {
    return this.gameWidth / 2
  }
  get gameCenterY() {
    return this.gameHeight / 2
  }
  computedX(width) {
    return (this.gameWidth - width) / 2
  }
  computedY(height) {
    return (this.gameHeight - height) / 2
  }

}
